home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-23 | 3.1 KB | 81 lines | [TEXT/Rich] |
- The little application SendToPort allows you to send strings of
- characters to either the modem port (port A) or the printer
- port (port B).
-
- It only starts transmission after you type a Return, but it
- does NOT send the return itself. In fact, it does not send
- any non-printing characters that you type.
-
- If you want to send a non-printing character, you have to know
- its corresponding Control sequence. For example, a backspace
- (BS) is CNTL-H and a Carriage Return (CR) is CNTL-M. To
- represent the 'CNTL-' in SendToPort, you type a circumflex
- accent ('^'), so that a BS becomes ^H and a CR becomes ^M.
-
- So, if you want to send a CR terminated string, you have to
- type a ^M at the end.
-
- If you want to send a '^', type ^^.
-
- Here is the full table:
-
- Dec Hex CNTL Name
-
- 0 00 ^@ NULL Null
- 1 01 ^A SOH Start of heading
- 2 02 ^B STX Start of text
- 3 03 ^C ETX End of text
- 4 04 ^D EOT End of transmission
- 5 05 ^E ENQ Enquiry
- 6 06 ^F ACK Acknowledge
- 7 07 ^G BEL Bell
- 8 08 ^H BS Backspace
- 9 09 ^I HT Horizontal tabulation
- 10 0A ^J LF Line feed
- 11 0B ^K VT Vertical tabulation
- 12 0C ^L FF Form feed
- 13 0D ^M CR nonmarkingreturn
- 14 0E ^N SO Shift out
- 15 0F ^O SI Shift in
- 16 10 ^P DLE Data link escape
- 17 11 ^Q DC1 Device control 1
- 18 12 ^R DC2 Device control 2
- 19 13 ^S DC3 Device control 3
- 20 14 ^T DC4 Device control 4
- 21 15 ^U NAK Negative acknwoledge
- 22 16 ^V SYN Synchronous idle
- 23 17 ^W ETB End of transmission block
- 24 18 ^X CAN Cancel
- 25 19 ^Y EM End of medium
- 26 1A ^Z SUB Substitute
- 27 1B ^[ ESC Escape
- 28 1C ^\ FS File separator
- 29 1D ^] GS Group separator
- 30 1E ^~ RS Record separator
- 31 1F ^_ US Unit separator
- 127 7F ^! DEL Delete
-
- Perhaps you have noticed that RS is produced by typing ^~ although
- the character between ']' and '_' is '^'. The reason is that the
- sequence ^^ is used to send a '^'. Also DEL needs a special
- sequence. The general rule is that SendToPort masks the first 3
- bits of a character if it follows a '^'.
-
- You can use SendToPort to control a copy of MacDOS on a different
- system: connect the two Macs via a serial port (eg. the modem port),
- start SendToPort on the "master" Mac, tell SendToPort to use port
- A, start MacDOS on the "slave" Mac, and type at the MacDOS prompt
- the following command: "serial a@". After that, you can direct
- MacDOS remotely with commands like:
- dir^m
- confirm on^m
-
- You can also use ^C to abort operations. MacDOS accepts from the
- serial ports the following control characters:
- ^C Aborts the current operation.
- ^H Backspace, deletes the last character typed.
- ^I Attempts to complete file and folder names.
- ^M Terminates a command and starts its execution.
- ^Z EOF, used when you use "more > filename" to store text
- into a file.
-